package com.ruoyi.system.basicInformation.mapper;

import com.ruoyi.common.core.domain.entity.TShipTree;
import com.ruoyi.system.basicInformation.bo.TShipQueryBo;
import com.ruoyi.system.basicInformation.domain.TShip;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.system.basicInformation.vo.TShipVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 船舶信息Mapper接口
 *
 * @author ruoyi
 * @date 2021-05-20
 */
public interface TShipMapper extends BaseMapper<TShip> {
    /**
     * 通过登录账号查询用户
     *
     * @param shipCode 船舶编码
     * @return 用户对象信息
     */
    public TShip selectUserByshipCode(String shipCode);

    /**
     * 查询记录
     * @param query
     * @return
     */
    List<TShipVo> listShipPersonnelStatistics(@Param("query") TShipQueryBo query);



    /**
     * 查询最后定位记录
     * @param query
     * @return
     */
    List<TShipVo> listShipCurrentPoint(@Param("query") TShipQueryBo query);

    public TShipVo selectById(Long id);

    List<TShipVo> querypList(@Param("query") TShipQueryBo query);

    public List<TShipTree> selectShipList(TShipTree dept);
}
